package com.sq.partner.manager.dao.credit;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import com.sq.partner.manager.dao.BaseDao;
import com.sq.partner.manager.mybatis.model.CreditProduct;
import com.sq.partner.manager.mybatis.model.NlifeProd;
import com.sq.partner.manager.mybatis.model.NlifeRisk;
import com.sq.partner.manager.util.Page;


public interface CreditProductDao extends BaseDao{
	
	public boolean saveProd(CreditProduct credit) throws Exception;
	
	public boolean updateProd(CreditProduct credit) throws Exception;
	
	public boolean deleteProd(String prodCode) throws Exception;
	
	public CreditProduct queryProdInfoById(String prodCode) throws SQLException;
	
	/**
	 * 分页条件查询
	 * @param page
	 * @return
	 * @throws Exception
	 */
	
	public Page<CreditProduct> queryPage(Page<CreditProduct> page) throws SQLException;

	public String findMaxCreditTradProdCode(String prodCode)throws SQLException;
	
	/**导出产品产品查询*/
	public List<CreditProduct> impCreditProd(Map<String, Object>map) throws Exception;
	/**产品导出险种*//*
 	public List<NlifeRisk>  impNlifeRisk(Map<String, Object> map)throws SQLException;*/
}
